package com.shoe.service;

import com.shoe.mapper.ShoeUserMapper;
import com.shoe.pojo.ShoeUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class ShoeUserImpl implements ShoeUserService {

    @Autowired
    ShoeUserMapper shoeUserMapper;


    @Override
    public Long selectIdd(String userName) {
        System.out.println(userName);
        Long a = shoeUserMapper.selectId(userName);
        return a;
    }

    @Override
    public int updataUser(ShoeUser shoeUser) {

      int a =  shoeUserMapper.updateByPrimaryKeySelective(shoeUser);

        return a;
    }

    @Override
    public ShoeUser selectUser(Long userId) {

        ShoeUser shoeUser =  shoeUserMapper.selectByPrimaryKey(userId);

        return shoeUser;
    }
}
